package xin.lhuo.we.server.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import xin.lhuo.we.server.entity.Photo;

import java.util.List;

/**
 * @author Lhuo
 * @date 2019/5/11 17:36
 */
@Mapper
@Component
public interface PhotoMapper {
    int save(Photo photo);
    int checkPhotoByAlbumId(Integer albumId);
    List<Photo> selectPhotoByAlbumId(Integer albumId);
    int deletePhotoById(Integer id);
    int countByUserId(Integer userId);

    List<Photo> selectRecentlyPhotoByUserId(Integer userId);
}
